package lcy.homework03.first;

/**
 * @ClassName: MusicCD
 * @Description: 音乐CD类 MusicCD
 * @author: 李春洋
 * @date: 2024/4/18 16:03
 * @Blog: https://
 */
public class MusicCD extends Item {
    private String artist;

    public MusicCD(String title, String artist) {
        super(title);
        this.artist = artist;
    }

    @Override
    public void displayInfo() {
        System.out.println("Music CD: " + title + " by " + artist);
    }
}
